/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mavenrentcars.service;

import com.mavenrentcars.exception.ViewException;
import com.mavenrentcars.form.CarForm;
import com.mavenrentcars.model.Car;
import com.mavenrentcars.model.Place;
import java.util.Date;
import java.util.List;

/**
 *
 * @author serg
 */
public interface CarService extends GenericService<Car, Integer> {

    public Car edit(CarForm form) throws ViewException;

    public Car add(CarForm form) throws ViewException;

    public List<Car> getAllByUser();

    public List<Car> getAll(Date start_date, Date end_date);

    public List<Car> getAll(Place start_place);

    public List<Car> getAll(Place start_place, Date start_date, Date end_date);
}
